package com.lemon.exam.service;

import com.lemon.exam.common.crud.BaseService;
import com.lemon.exam.entity.dto.RoleMenuResourceDTO;
import com.lemon.exam.entity.po.RolePO;
import com.lemon.exam.entity.vo.MenuResourceVO;
import com.lemon.exam.entity.vo.UserVO;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;

/**
 * 角色表 服务接口
 *
 * @author Lemon
 * @since 2025/04/04 14:23:22
 */
public interface IRoleService extends BaseService<RolePO, Long> {
    Flux<UserVO> findUser(Long roleId);

    Flux<MenuResourceVO> findMenuResource(Long roleId);

    Mono<String> updateMenuResource(List<RoleMenuResourceDTO> param);
}